Creating
a RIFF Chunk
The following
example uses the mmioCreateChunk
HMMIO
hmmio;
MMCKINFO mmckinfo;
.
.
.
mmckinfo.fccType = mmioFOURCC('R', 'D', 'I', 'B');
mmioCreateChunk(hmmio, &mmckinfo,
MMIO_CREATERIFF);
If you are
creating a RIFF or LIST chunk, you must specify the form type or list type
in the fccType member of the MMCKINFO2NZM4LP structure. In the previous example,
RDIB is the form type.
If you know
the size of the data field in a new chunk, you can set the cksize member
of the MMCKINFO structure when you create the chunk. This value will be
written to the data size field in the new chunk. If this value is not correct
when you call mmioAscend
After you
create a chunk by using the mmioCreateChunk